package com.tunxing.创建型.建造者设计模式;

public class LowLevelComputerBuilder implements ComputerBuilder {

    private Computer computer;

    public LowLevelComputerBuilder() {
        this.computer = new Computer();
    }


    @Override
    public void buildCpu() {
        computer.setCpu("i3");
    }

    @Override
    public void buildMemory() {
        computer.setMemory("8G");
    }

    @Override
    public void buildDisk() {
        computer.setDisk("500G");
    }

    @Override
    public Computer getInstance() {
        return computer;
    }
}
